/**
 * Copyright &copy; 2019-2022 <a href="https://gitee.com/rit/zx-pm">zx-pm</a> All rights reserved.
 */
package com.zx.pm.modules.zx.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.zx.pm.common.persistence.DataEntity;

/**
 * 业务日志Entity
 * @author forest
 * @version 2019-01-30
 */
public class YwLog extends DataEntity<YwLog> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 操作类型
	private String dataId;		// 操作数据ID
	private String ywTable;		// 操作的业务表
	private String ywName;		// 操作业务名称
	private String remoteAddr;	// 操作ID地址
	private Date beginDate;
	private Date endDate;
	public YwLog() {
		super();
	}

	public YwLog(String id){
		super(id);
	}

	@Length(min=0, max=100, message="操作类型长度必须介于 0 和 100 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="操作数据ID长度必须介于 0 和 64 之间")
	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}
	
	@Length(min=0, max=255, message="操作的业务表长度必须介于 0 和 255 之间")
	public String getYwTable() {
		return ywTable;
	}

	public void setYwTable(String ywTable) {
		this.ywTable = ywTable;
	}
	
	@Length(min=0, max=255, message="操作业务名称长度必须介于 0 和 255 之间")
	public String getYwName() {
		return ywName;
	}

	public void setYwName(String ywName) {
		this.ywName = ywName;
	}
	
	
	@Length(min=0, max=255, message="操作ID地址长度必须介于 0 和 255 之间")
	public String getRemoteAddr() {
		return remoteAddr;
	}

	public void setRemoteAddr(String remoteAddr) {
		this.remoteAddr = remoteAddr;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	
}